#include"tcp_server.hpp"
void Usage(string proc)
{
  cout<<"Usage: "<<proc<<" port"<<endl;
}
int main(int argc,char* argv[])
{
  if(argc!=2)
  {
    Usage(argv[0]);
    exit(1);
  }
  TcpServer ts(atoi(argv[1]));
  ts.InitServer();
  cout<<"success"<<endl;
  ts.Loop();
  return 0;
}
